package com.xxg.fileshand.app;

import com.blankj.utilcode.util.SPUtils;
import com.xxg.fileshand.constant.Constant;

/**
 * Create by Sxl on 2023/8/8.
 */
public class SetInfo {

    //扫描层架功率
    public static int getScanCasePower() {
        return SPUtils.getInstance().getInt(Constant.SCAN_CASE_POWER, 10);
    }

    public static void setScanCasePower(int scanCasePower) {
        SPUtils.getInstance().put(Constant.SCAN_CASE_POWER, scanCasePower);
    }

    //扫描档案功率
    public static int getScanWzPower() {
        return SPUtils.getInstance().getInt(Constant.SCAN_WZ_POWER, 20);
    }

    public static void setScanWzPower(int scanWzPower) {
        SPUtils.getInstance().put(Constant.SCAN_WZ_POWER, scanWzPower);
    }

    //离线模式
    public static Boolean isOffline() {
//        return true;
        return SPUtils.getInstance().getBoolean(Constant.IS_OFFLINE, false);
    }

    public static void setOffline(Boolean isOffline) {
        SPUtils.getInstance().put(Constant.IS_OFFLINE, isOffline);
    }

    //是否忽略错架
    public static Boolean isIgnoreWrongCase() {
        return SPUtils.getInstance().getBoolean(Constant.IS_IGNORE_WRONG_CASE, false);
    }

    public static void setIgnoreWrongCase(Boolean isIgnoreWrongCase) {
        SPUtils.getInstance().put(Constant.IS_IGNORE_WRONG_CASE, isIgnoreWrongCase);
    }


}
